﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" CodeFile="UserManage.aspx.cs" Inherits="UserManage" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 25%;
            text-align:right;
        }
        .style2
        {
            width: 25%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="MainContent">
   <h1 class="DemoTitle">
        用户信息添加
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px; margin-bottom: 0px;">
            <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="800px">
                <PanelCollection>
                    <dx:PanelContent>
                       <table style="text-align:left; width:100%">
                <tr>
                    <td class="style1">
                        用户名：
                    </td>
                    <td class="style2">
                        <dx:ASPxTextBox ID="txtName" runat="server" Width="100%" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        </dx:ASPxTextBox>
                    </td>
                    <td class="style1">
                        所属城区：
                    </td>
                    <td  class="style2">
                        <dx:ASPxComboBox ID="cmdCommunity" runat="server" Width="100%" 
                            DataSourceID="SqlDataSource1" TextField="Community_Name" 
                            ValueField="Community_ID" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Spacing="0" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                            </LoadingPanelImage>
                            <LoadingPanelStyle ImageSpacing="5px">
                            </LoadingPanelStyle>
                        </dx:ASPxComboBox>
                    </td>
                       
                </tr>
                <tr>
                    <td class="style1">
                        登录名：
                    </td>
                    <td class="style2">
                        <dx:ASPxTextBox ID="txtLoginname" runat="server" Width="100%" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        </dx:ASPxTextBox>
                    </td>
                    <td  class="style1">
                        密码：
                    </td>
                    <td  class="style2">
                        <dx:ASPxTextBox ID="txtPsw" runat="server" Width="100%" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        联系电话：
                    </td>
                    <td class="style2">
                        <dx:ASPxTextBox ID="txtPhone" runat="server" Width="100%" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        </dx:ASPxTextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td align="right">
                        <dx:ASPxButton ID="btnOK" runat="server" Text="添  加" onclick="btnOK_Click" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        </dx:ASPxButton>
                    </td>
                    <td>
                       <dx:ASPxButton ID="btnCancel" runat="server" Text="取 消" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                            Height="24px" OnClick="btnCancel_Click">
                        </dx:ASPxButton>
                    </td>
                </tr>
                </table> 
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxPanel>

             <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ManagerConnectionString %>" 
                        SelectCommand="select * from dbo.Community where Community_ID =  RIGHT('00'+CAST(Community_ID AS VARCHAR(2)),2) order by Community_ID"></asp:SqlDataSource>
            
        </div>
   </div>

</asp:Content>


